﻿<%@ Control Language="C#" Inherits= "System.Web.Mvc.ViewUserControl<HuynhQuangWebsite.Models.HomeListViewModel>" %>
<%@ Import Namespace="THS.HtmlHelpers" %>
<%@ Import Namespace="HuynhQuangWebsite.Models" %>
<div id="sidebar">
		<div class="widget-area">
            <aside class="syswidget textwidget">
                <h1 class="widget-title">KHÁCH HÀNG NÓI GÌ</h1>
                <div class="divider"></div>

                <div class="portfolio_item">										
                    <%if (ViewData["customer"] == null)
                        {
                            if (Model.CustomerList != null)
                            {
                                foreach (var item in Model.CustomerList)
                                {%>
                                <div class="port_box">
							    <div class="port_img">
								    <div class="post_img">
									    <img alt="img" src="../../Images/assets/post_img1.jpg" />
                                        <img src ="<%=(Model.CustomerList[0] as Customer).CustomerImg %>" alt="" />
								    </div>
								    <div class="hover_type">
									    <a class="lightbox hoverimage" href="../../Images/assets/preview_img.jpg"></a>
								    </div>
							    </div>
							    <div class="port_desc">
								    <h5><%= (Model.CustomerList[0] as Customer).CustomerName%></h5>
								    <p class="extras"><span class="pdate">khách hàng nói gì:</span></p>
								    <p><%= (Model.CustomerList[0] as Customer).CustomerInfo%></p>
								    <p><a href="#" class="more_link">đọc thêm&#8230; </a></p>
							    </div>
                                </div><!-- .port_box -->
					            <div class="divider"></div>
                            <%}
                            }
                        }
                        else
                        { %>
                        <img src ="<%=(ViewData["customer"] as Customer).CustomerImgThumb %>" alt="" />

                        <%} %>
				</div><!-- .portfolio_item -->
            </aside>
			<!-- .syswidget -->
						
	</div>
	<!-- .widget-area -->
</div>